<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String bp = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

String __MANAGER = bp+"admin/";
String __SHOWMAINVIEW = __MANAGER+"showModule.do";
String __CREATEMENUBUTTON = __MANAGER+"createMenuButton.do";
%>

<!DOCTYPE html>
<html>
  <head>
    <title>SWIFT4J快速开发平台</title>
  </head>
  
<body class="">
	<div class="d-1 tab70">
		<h2 class="h2-ac">辅助检查</h2>

		<div class="d-b1">
		      <form name="supplementForm1" onsubmit="return false;">
				<input type="hidden" name="supplement.suppId" value="${supplement.suppId }"/>
				<input type="hidden" name="patientDoc.docId" value="${patientDoc.docId }"/>
		      	<table border="0" cellspacing="0" cellpadding="15" class="fs16">
		      	      <tr>
		      	      	<td class="ta-r">抗乙酰胆碱受体抗体试验：</td>
		      	      	<td>
		      	      	      <input type="radio" name="supplement.antibody" value="1" <c:if test="${supplement.antibody == 1}">checked="checked"</c:if> >是
		      	      	      <input type="radio" name="supplement.antibody" value="2" <c:if test="${supplement.antibody == 2}">checked="checked"</c:if> >否
		      	      	</td>
		      	      </tr>
		      	      
		      	</table>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="supplementSave1()">保存</a>
		      	
		      </form>
		</div>

		<div class="d-b1">
		      <form name="supplementForm2" onsubmit="return false;">
				<input type="hidden" name="supplement.suppId" value="${supplement.suppId }"/>
				<input type="hidden" name="patientDoc.docId" value="${patientDoc.docId }"/>
		      	<table border="0" cellspacing="0" cellpadding="15" class="fs16">
		      	      <tr>
		      	      	<td class="ta-r">免疫学指标：</td>
		      	      	<td>
			      	      <table border="1" cellspacing="0" cellpadding="15" class="ta-c">
			      	            <tr>
			      	            	      <td rowspan="2">项目</td>
			      	            	      <td colspan="4">结果</td>
			      	            </tr>
			      	            <tr>
			      	            	      <td>第2周末</td>
			      	            	      <td>第4周末</td>
			      	            	      <td>第8周末</td>
			      	            	      <td>第12周</td>
			      	            </tr>
			      	            <tr>
			      	            	      <td>IgG</td>
			      	            	      <c:forEach items="${immuTable[0] }" var="igg">
				      	            	      <td><input type="text" value="${igg }" name="igg"></td>
			      	            	      </c:forEach>
			      	            </tr>
			      	            <tr>
			      	            	      <td>C3</td>
			      	            	      <c:forEach items="${immuTable[1] }" var="c3">
				      	            	      <td><input type="text" value="${c3 }" name="c3"></td>
			      	            	      </c:forEach>
			      	            </tr>
			      	            <tr>
			      	            	      <td>CD4</td>
			      	            	      <c:forEach items="${immuTable[2] }" var="cd4">
				      	            	      <td><input type="text" value="${cd4 }" name="cd4"></td>
			      	            	      </c:forEach>
			      	            </tr>
			      	            <tr>
			      	            	      <td>CD8</td>
			      	            	      <c:forEach items="${immuTable[3] }" var="cd8">
				      	            	      <td><input type="text" value="${cd8 }" name="cd8"></td>
			      	            	      </c:forEach>
			      	            </tr>
			      	            <tr>
			      	            	      <td>sIL-2R</td>
			      	            	      <c:forEach items="${immuTable[4] }" var="sil2r">
				      	            	      <td><input type="text" value="${sil2r }" name="sil2r"></td>
			      	            	      </c:forEach>
			      	            </tr>
			      	            <tr>
			      	            	      <td>IFN-γ</td>
			      	            	      <c:forEach items="${immuTable[5] }" var="ifn">
				      	            	      <td><input type="text" value="${ifn }" name="ifn"></td>
			      	            	      </c:forEach>
			      	            </tr>
			      	            <tr>
			      	            	      <td>Anti-SSA</td>
			      	            	      <c:forEach items="${immuTable[6] }" var="antissa">
				      	            	      <td><input type="text" value="${antissa }" name="antissa"></td>
			      	            	      </c:forEach>
			      	            </tr>
			      	            <tr>
			      	            	      <td>Anti-SSB</td>
			      	            	      <c:forEach items="${immuTable[7] }" var="antissb">
				      	            	      <td><input type="text" value="${antissb }" name="antissb"></td>
			      	            	      </c:forEach>
			      	            </tr>
			      	            <tr>
			      	            	      <td>ANA</td>
			      	            	      <c:forEach items="${immuTable[8] }" var="ana">
				      	            	      <td><input type="text" value="${ana }" name="ana"></td>
			      	            	      </c:forEach>
			      	            </tr>
			      	      </table>		      	      	      
		      	      	</td>
		      	      </tr>		      	      
		      	</table>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="supplementSave2()">保存</a>		      	
		      </form>
		</div>

		<div class="d-b1">
		      <form name="supplementForm3" onsubmit="return false;">
				<input type="hidden" name="supplement.suppId" value="${supplement.suppId }"/>
				<input type="hidden" name="patientDoc.docId" value="${patientDoc.docId }"/>
		      	<table border="0" cellspacing="0" cellpadding="15" class="fs16">
		      	      <tr>
		      	      	<td class="ta-r d-ib">肌肉活检：</td>
		      	      	<td>
		      	      	      <input type="text" name="supplement.biopsy" value="${supplement.biopsy }">
		      	      	</td>
		      	      </tr>
		      	      
		      	</table>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="supplementSave3()">保存</a>
		      	
		      </form>
		</div>

		<div class="d-b1">
		      <form name="supplementForm4" onsubmit="return false;">
				<input type="hidden" name="supplement.suppId" value="${supplement.suppId }"/>
				<input type="hidden" name="patientDoc.docId" value="${patientDoc.docId }"/>
		      	<table border="0" cellspacing="0" cellpadding="15" class="fs16">
		      	      <tr>
		      	      	<td class="ta-r d-ib">肌电图：</td>
		      	      	<td>
		      	      	      <input type="text" name="supplement.emg" value="${supplement.emg }">
		      	      	</td>
		      	      </tr>
		      	      
		      	</table>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="supplementSave4()">保存</a>
		      	
		      </form>
		</div>

		<div class="d-b1">
		      <form name="supplementForm5" onsubmit="return false;">
				<input type="hidden" name="supplement.suppId" value="${supplement.suppId }"/>
				<input type="hidden" name="patientDoc.docId" value="${patientDoc.docId }"/>
		      	<table border="0" cellspacing="0" cellpadding="15" class="fs16">
		      	      <tr>
		      	      	<td class="ta-r d-ib">血气组合：</td>
		      	      	<td>
		      	      	      <input type="text" name="supplement.bloodGas" value="${supplement.bloodGas }">
		      	      	</td>
		      	      </tr>
		      	      
		      	</table>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="supplementSave5()">保存</a>
		      	
		      </form>
		</div>

		<div class="d-b1">
		      <form name="supplementForm6" onsubmit="return false;">
				<input type="hidden" name="supplement.suppId" value="${supplement.suppId }"/>
				<input type="hidden" name="patientDoc.docId" value="${patientDoc.docId }"/>
		      	<table border="0" cellspacing="0" cellpadding="15" class="fs16">
		      	      <tr>
		      	      	<td class="ta-r">其他项目：</td>
		      	      	<td>
			      	      <table border="1" cellspacing="0" cellpadding="15" class="ta-c">
			      	            <tr>
			      	            	      <td rowspan="2">项目</td>
			      	            	      <td colspan="4">结果</td>
			      	            </tr>
			      	            <tr>
			      	            	      <td>第2周末</td>
			      	            	      <td>第4周末</td>
			      	            	      <td>第8周末</td>
			      	            	      <td>第12周</td>
			      	            </tr>
			      	            <tr>
			      	            	      <td>BUN</td>
			      	            	      <c:forEach items="${inspTable[0] }" var="bun">
			      	            	      	<td><input type="text" value="${bun }" name="bun"></td>
			      	            	      </c:forEach>
			      	            </tr>
			      	            <tr>
			      	            	      <td>ALT</td>
			      	            	      <c:forEach items="${inspTable[1] }" var="alt">
			      	            	      	<td><input type="text" value="${alt }" name="alt"></td>
			      	            	      </c:forEach>
			      	            </tr>
			      	            <tr>
			      	            	      <td>血分析</td>
			      	            	      <c:forEach items="${inspTable[2] }" var="blood">
			      	            	      	<td><input type="text" value="${blood }" name="blood"></td>
			      	            	      </c:forEach>
			      	            </tr>
			      	            <tr>
			      	            	      <td>尿分析</td>
			      	            	      <c:forEach items="${inspTable[3] }" var="urine">
			      	            	      	<td><input type="text" value="${urine }" name="urine"></td>
			      	            	      </c:forEach>
			      	            </tr>
			      	            <tr>
			      	            	      <td>血清钾</td>
			      	            	      <c:forEach items="${inspTable[4] }" var="sp">
			      	            	      	<td><input type="text" value="${sp }" name="sp"></td>
			      	            	      </c:forEach>
			      	            </tr>
			      	            <tr>
			      	            	      <td>CRP</td>
			      	            	      <c:forEach items="${inspTable[5] }" var="crp">
			      	            	      	<td><input type="text" value="${crp }" name="crp"></td>
			      	            	      </c:forEach>
			      	            </tr>
			      	            <tr>
			      	            	      <td>ESR</td>
			      	            	      <c:forEach items="${inspTable[6] }" var="esr">
			      	            	      	<td><input type="text" value="${esr }" name="esr"></td>
			      	            	      </c:forEach>
			      	            </tr>
			      	            <tr>
			      	            	      <td>病原学检查（痰、尿、血、大便）</td>
			      	            	      <c:forEach items="${inspTable[7] }" var="ec">
			      	            	      	<td><input type="text" value="${ec }" name="ec"></td>
			      	            	      </c:forEach>
			      	            </tr>			      	           
			      	      </table>		      	      	      
		      	      	</td>
		      	      </tr>		      	      
		      	</table>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="supplementSave6()">保存</a>		      	
		      </form>
		</div>
	</div>
	<script type="text/javascript">
		function supplementSave1() {
			$(supplementForm1).form('submit',{
				url: __MANAGER+'myastheniaDoc_supplementSave1.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
					$('#t_supplement').panel('refresh');
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
		
		function supplementSave2() {
			$(supplementForm2).form('submit',{
				url: __MANAGER+'myastheniaDoc_supplementSave2.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
					$('#t_supplement').panel('refresh');
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
		
		function supplementSave3() {
			$(supplementForm3).form('submit',{
				url: __MANAGER+'myastheniaDoc_supplementSave3.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
					$('#t_supplement').panel('refresh');
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
		
		function supplementSave4() {
			$(supplementForm4).form('submit',{
				url: __MANAGER+'myastheniaDoc_supplementSave4.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
					$('#t_supplement').panel('refresh');
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
		
		function supplementSave5() {
			$(supplementForm5).form('submit',{
				url: __MANAGER+'myastheniaDoc_supplementSave5.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
					$('#t_supplement').panel('refresh');
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
		
		function supplementSave6() {
			$(supplementForm6).form('submit',{
				url: __MANAGER+'myastheniaDoc_supplementSave6.do',
				success: function(data){
					var json = jQuery.parseJSON(data);
					if(json.rtnCode == 'success') {
						S4J.utils.showMessage(json.rtnMsg);
					}
					$('#t_supplement').panel('refresh');
				},
				onLoadError: function() {
					S4J.utils.showMessage('保存失败，请重试');
				}
			});
		}
	</script>
</body>
</html>
